﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Skyhook;
using Skyhook.Core;
using Skyhook.Resources;
using System.Xml;

namespace Skyhook.Sprites
{
    internal class SpriteRenderComponent : DrawableGameComponent
    {
        SpriteWorldVisualizer Visualizer = null;

        public SpriteRenderComponent(Microsoft.Xna.Framework.Game game,SpriteWorldVisualizer visualizer)
            : base(game)
        {
            Visualizer = visualizer;
        }

        public override void Draw(GameTime time)
        {
            Visualizer.RenderSprites();
            
            base.Draw(time);
        }

        public int SpritesOnScreen
        {
            get
            {
                return Visualizer.SpritesOnScreen;
            }
        }
    }
}
